<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>简单生成水印</title>
  <style>
    .demo {
      width: 100%;
      height: 800px;
      text-align: center;
    }
  </style>
</head>
<body>
  <div class="demo">
    <h4>水印添加</h4>
  </div>
  <script src="../js/watermark.js"></script>
  <!-- 调用脚本生成水印 -->
  <script>
    /*初始化水印*/
    watermark.init({ watermark_txt: "测试水印，zwt1234，测试水印，123456", watermark_width: 100 });
  </script>
</body>

</html>